package com.hegongda.dao;

import com.hegongda.bean.Introduce;
import com.hegongda.bean.PageBean;
import com.hegongda.bean.Product;
import com.hegongda.bean.Nav;
import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    public List<Product> getHost() throws SQLException;
    public List<Product> getNews() throws SQLException;
    public List<Nav> getAllNav() throws SQLException;
    public Product getOneProduct(String pid) throws SQLException;
    public List<Product> getPageProduct(String cid,int fistnum, int lastnum) throws SQLException;
    public long getProductCount(String cid) throws SQLException;
    public List<Product> foundByNamePage(String search,int fistnum,int lastnum) throws SQLException;
    public long foundByNameCount(String search) throws SQLException;
    public Introduce getOneProductI(String iid) throws SQLException;
}
